package com.lixin.juc.callable;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

public class MyCallable implements Callable<String> {
    @Override
    public String call() throws Exception {
        System.out.println("任务执行了");
        TimeUnit.SECONDS.sleep(3);
        return "success";
    }
}
